<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="__ROOT__/statics/admin/css/style.css" rel="stylesheet" type="text/css"/>
<link href="__ROOT__/statics/css/dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/jquery/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/admin/js/admin_common.js"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/dialog.js"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/jquery/plugins/formvalidator.js" charset="UTF-8"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/jquery/plugins/formvalidatorregex.js" charset="UTF-8"></script>
<script language="javascript">
var URL = '__URL__';
var ROOT_PATH = '__ROOT__';
var APP	 =	 '__APP__';
var lang_please_select = "<?php echo (L("please_select")); ?>";
</script>
<title><?php echo (L("website_manage")); ?></title>
</head>

<body>
<?php if(($sub_menu != '') OR ($big_menu != '')): ?><div class="subnav">
    <div class="content-menu ib-a blue line-x">
    	<?php if(!empty($big_menu)): ?><a class="add fb" href="<?php echo ($big_menu["0"]); ?>"><em><?php echo ($big_menu["1"]); ?></em></a>　<?php endif; ?>
        <?php if(!empty($sub_menu)): ?><?php if(is_array($sub_menu)): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): ++$key;$mod = ($key % 2 )?><?php if($key != '1'): ?><span>|</span><?php endif; ?>
        <a href="<?php echo u($val['c'].'/'.$val['a'], array('menuid'=>$val['id']));?>" <?php if($curr_menuid == $val['id']): ?>class="on"<?php endif; ?>><em><?php echo ($val["title"]); ?></em></a><?php endforeach; endif; else: echo "" ;endif; ?><?php endif; ?>
    </div>
</div><?php endif; ?>

<div class="pad_10">
<form action="<?php echo u('cate/insert');?>" method="post" name="myform" id="myform" >
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
	<tr> 
      <th width="100"><?php echo (L("cate_name")); ?> :</th>
      <td><input type="text" name="cate_name" id="cate_name" class="input-text"></td>
    </tr>
    <tr> 
      <th><?php echo (L("last_cate")); ?> :</th>
      <td>
          <select name="pid">
            <option value="0">--顶级分类--</option>
            <?php if(is_array($cate_list['parent'])): $i = 0; $__LIST__ = $cate_list['parent'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($val["cate_id"]); ?>"><?php echo ($val["cate_name"]); ?></option>
            	<?php if(!empty($cate_list['sub'][$val['cate_id']])): ?><?php if(is_array($cate_list['sub'][$val['cate_id']])): $i = 0; $__LIST__ = $cate_list['sub'][$val['cate_id']];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sval): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($sval["cate_id"]); ?>">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo ($sval["cate_name"]); ?></option>
                    <?php if(!empty($cate_list['sub'][$sval['cate_id']])): ?><?php if(is_array($cate_list['sub'][$sval['cate_id']])): $i = 0; $__LIST__ = $cate_list['sub'][$sval['cate_id']];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ssval): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($ssval["cate_id"]); ?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo ($ssval["cate_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?><?php endif; ?><?php endforeach; endif; else: echo "" ;endif; ?><?php endif; ?><?php endforeach; endif; else: echo "" ;endif; ?>
          </select>
        </td>
    </tr>
	<tr> 
      <th><?php echo (L("sort")); ?> :</th>
      <td><input type="text" name="sort_order" id="sort_order" class="input-text" value="255"></td>
    </tr>
</table>
<input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" ">
</form>
</div>
</body>
</html>